package com.shop.shoppojo.vo;

import com.shop.shoppojo.entity.Goods;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serial;
import java.io.Serializable;

@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
public class CartGoodsVO implements Serializable {
    // 序列化版本号
    @Serial
    private static final long serialVersionUID = 1L;

    // 主键
    private Long id;

    // 商品id
    private Long goodsId;

    // 商品数量
    private Integer goodsNum;

    // 用户id
    private Long userId;


    private Goods goods;
}
